package com.jingnen.guess_index_server;

import java.security.SecureRandom;
import java.util.Base64;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

// @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class GuessIndexServerApplication {

	public static void main(String[] args) {
		// SpringApplication.run(GuessIndexServerApplication.class, args);
		SecureRandom random = new SecureRandom();
		byte[] key = new byte[32];
		random.nextBytes(key);
		String secretKey = Base64.getEncoder().encodeToString(key);
		System.out.println("JWT Secret Key:" + secretKey);
	}

}
